package com.hangup.util;

public class StringUtil {

	/**
	 * @param str
	 * @return ÿ��λ���һ���ո�
	 */
	public static String formatString(String str) {
		String[] strs = str.split("");
		StringBuffer sb = new StringBuffer();
		for (int i = 1; i < strs.length; i++) {
			if (i % 2 == 0) {
				strs[i] = strs[i] + " ";
			}
			sb.append(strs[i]);
		}
		return sb.toString().trim();
	}
}
